using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DataStructure
{
    public class HashST2Dictionary<Key, Value> : IDictionary<Key, Value>
    {
        private HashST2<Key, Value> _hashST2;
        public int Count => _hashST2.Count;

        public bool IsEmpty => _hashST2.IsEmpty;
        
        public HashST2Dictionary(int capacity)
        {
            _hashST2 = new HashST2<Key, Value>(capacity);
        }
        
        public HashST2Dictionary()
        {
            _hashST2 = new HashST2<Key, Value>();
        }
        
        public void Add(Key key, Value value)
        {
            _hashST2.Add(key, value);
        }

        public bool ContainsKey(Key key)
        {
            return _hashST2.Contains(key);
        }

        public Value Get(Key key)
        {
            return _hashST2.Get(key);
        }

        public void Remove(Key key)
        {
            _hashST2.Remove(key);
        }

        public void Set(Key key, Value value)
        {
            _hashST2.Set(key, value);
        }
    }
}